package com.latam.arq.example.web.admin.listeners;

import org.primefaces.push.PushContext;
import org.primefaces.push.PushContextFactory;

import com.latam.arq.example.admin.logger.annotations.LATAMLogListener;

@LATAMLogListener
public class ExampleLogListener implements com.latam.arq.example.admin.logger.interfaces.LATAMLogListener{
	@Override
	public void processLogLine(String logLine) {
		final PushContext pushContext = PushContextFactory.getDefault().getPushContext();	
		pushContext.push("/applogger", logLine );	
	}
}
